package cn.itcast.dao;



import cn.itcast.pojo.Member;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;


import java.util.List;


public interface MemberDao {

  /**
   *
   * @return
   */
  List<Member> findAll();

    /**
     * 根据id查询
     * @param id
     * @return
     */
  Member findById(Integer id);

    /**
     * 添加
     * @param member
     */
 void add(Member member);

    /**
     * 分页查询
     * @return
     */
  Page<Member> selectByCondition(String QueryString);

    /**
     * 修改
     * @param member
     * @return
     */
  Integer update(Member member);

  Integer updateStatus(@Param("id") Integer id, @Param("status") Integer status);


    //根据手机号查询会员信息
    Member findByTelephone(String phone);

    //添加会员信息
    //void add(Member member);

}
